remove unecessary rules for win32-specific config-substituted targets. If
authorOwen Taylor <otaylor@redhat.com>
Thu, 16 Nov 2000 00:16:46 +0000 (00:16 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 16 Nov 2000 00:16:46 +0000 (00:16 +0000)
Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>

* **/Makefile.am : remove unecessary rules for win32-specific
config-substituted targets. If you want these rules, use
--enable-maintainer-mode (called automatically by autogen.sh).
Stops a lot of unneccessary make-time warnings.

* gtk/gtktext{layout,display}.c: Factor in total width as
well as screen when figuring alignment for word-wrap as well as
no wrap; this is necessary to handle lines that cannot be wrapped
at all.

15 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk-pixbuf/Makefile.am
gdk-pixbuf/pixops/Makefile.am
gdk/Makefile.am
gdk/win32/Makefile.am
gdk/win32/rc/Makefile.am
gtk/Makefile.am
gtk/gtktextdisplay.c
gtk/gtktextlayout.c

index fda558b50fc23fc4f0a62c18e65f0acae1386994..956403aae0a0066dc8c14a248de0eb12cdc8d871 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * **/Makefile.am : remove unecessary rules for win32-specific
+       config-substituted targets. If you want these rules, use
+       --enable-maintainer-mode (called automatically by autogen.sh).
+       Stops a lot of unneccessary make-time warnings.
+
+       * gtk/gtktext{layout,display}.c: Factor in total width as
+       well as screen when figuring alignment for word-wrap as well as
+       no wrap; this is necessary to handle lines that cannot be wrapped
+       at all.
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/testtext.c: Implement essential color cycling feature
index fda558b50fc23fc4f0a62c18e65f0acae1386994..956403aae0a0066dc8c14a248de0eb12cdc8d871 100644 (file)
@@ -1,3 +1,15 @@
+Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * **/Makefile.am : remove unecessary rules for win32-specific
+       config-substituted targets. If you want these rules, use
+       --enable-maintainer-mode (called automatically by autogen.sh).
+       Stops a lot of unneccessary make-time warnings.
+
+       * gtk/gtktext{layout,display}.c: Factor in total width as
+       well as screen when figuring alignment for word-wrap as well as
+       no wrap; this is necessary to handle lines that cannot be wrapped
+       at all.
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/testtext.c: Implement essential color cycling feature
index fda558b50fc23fc4f0a62c18e65f0acae1386994..956403aae0a0066dc8c14a248de0eb12cdc8d871 100644 (file)
@@ -1,3 +1,15 @@
+Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * **/Makefile.am : remove unecessary rules for win32-specific
+       config-substituted targets. If you want these rules, use
+       --enable-maintainer-mode (called automatically by autogen.sh).
+       Stops a lot of unneccessary make-time warnings.
+
+       * gtk/gtktext{layout,display}.c: Factor in total width as
+       well as screen when figuring alignment for word-wrap as well as
+       no wrap; this is necessary to handle lines that cannot be wrapped
+       at all.
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/testtext.c: Implement essential color cycling feature
index fda558b50fc23fc4f0a62c18e65f0acae1386994..956403aae0a0066dc8c14a248de0eb12cdc8d871 100644 (file)
@@ -1,3 +1,15 @@
+Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * **/Makefile.am : remove unecessary rules for win32-specific
+       config-substituted targets. If you want these rules, use
+       --enable-maintainer-mode (called automatically by autogen.sh).
+       Stops a lot of unneccessary make-time warnings.
+
+       * gtk/gtktext{layout,display}.c: Factor in total width as
+       well as screen when figuring alignment for word-wrap as well as
+       no wrap; this is necessary to handle lines that cannot be wrapped
+       at all.
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/testtext.c: Implement essential color cycling feature
index fda558b50fc23fc4f0a62c18e65f0acae1386994..956403aae0a0066dc8c14a248de0eb12cdc8d871 100644 (file)
@@ -1,3 +1,15 @@
+Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * **/Makefile.am : remove unecessary rules for win32-specific
+       config-substituted targets. If you want these rules, use
+       --enable-maintainer-mode (called automatically by autogen.sh).
+       Stops a lot of unneccessary make-time warnings.
+
+       * gtk/gtktext{layout,display}.c: Factor in total width as
+       well as screen when figuring alignment for word-wrap as well as
+       no wrap; this is necessary to handle lines that cannot be wrapped
+       at all.
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/testtext.c: Implement essential color cycling feature
index fda558b50fc23fc4f0a62c18e65f0acae1386994..956403aae0a0066dc8c14a248de0eb12cdc8d871 100644 (file)
@@ -1,3 +1,15 @@
+Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * **/Makefile.am : remove unecessary rules for win32-specific
+       config-substituted targets. If you want these rules, use
+       --enable-maintainer-mode (called automatically by autogen.sh).
+       Stops a lot of unneccessary make-time warnings.
+
+       * gtk/gtktext{layout,display}.c: Factor in total width as
+       well as screen when figuring alignment for word-wrap as well as
+       no wrap; this is necessary to handle lines that cannot be wrapped
+       at all.
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/testtext.c: Implement essential color cycling feature
index fda558b50fc23fc4f0a62c18e65f0acae1386994..956403aae0a0066dc8c14a248de0eb12cdc8d871 100644 (file)
@@ -1,3 +1,15 @@
+Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * **/Makefile.am : remove unecessary rules for win32-specific
+       config-substituted targets. If you want these rules, use
+       --enable-maintainer-mode (called automatically by autogen.sh).
+       Stops a lot of unneccessary make-time warnings.
+
+       * gtk/gtktext{layout,display}.c: Factor in total width as
+       well as screen when figuring alignment for word-wrap as well as
+       no wrap; this is necessary to handle lines that cannot be wrapped
+       at all.
+
 2000-11-15  Havoc Pennington  <hp@redhat.com>
 
        * gtk/testtext.c: Implement essential color cycling feature
index 02967bf726712afffdf71f457472452646c95025..a63e99fecbdeee006e2dde513b4debe103ef6899 100644 (file)
@@ -199,6 +199,3 @@ EXTRA_DIST =                        \
        pixbufloader_png.def            \
        pixbufloader_tiff.def           \
        pixbufloader_wbmp.def
-
-makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gdk-pixbuf/makefile.mingw.in
-       cd $(top_builddir) && CONFIG_FILES=gdk-pixbuf/$@ CONFIG_HEADERS= $(SHELL) ./config.status
index f799f42ffc028a4f455c7a4bd65d7da75b1f0ae2..4e1231986298f3e844ff45fe11bb54a22242e881 100644 (file)
@@ -25,7 +25,3 @@ EXTRA_DIST =                          \
        DETAILS                         \
        makefile.mingw                  \
        makefile.mingw.in
-
-makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gdk-pixbuf/pixops/makefile.mingw.in
-       cd $(top_builddir) && CONFIG_FILES=gdk-pixbuf/pixops/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
index d856016ff4b16df264a427718a124a69e4140030..391abdd219280ace2e9ff6203710dd3a5c507256 100644 (file)
@@ -180,9 +180,6 @@ stamp-gc-h: ../config.status
        cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
        echo timestamp > stamp-gc-h
 
-makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gdk/makefile.mingw.in
-       cd $(top_builddir) && CONFIG_FILES=gdk/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
 .PHONY: files
 
 files:
index 3c4d2b4d4fc5fcb1b455d27537d724d03f900e1e..bd2b86ece0f548ce4e6442be2183926c97351afa 100644 (file)
@@ -26,7 +26,3 @@ EXTRA_DIST = \
        gdkwin32id.c \
        gdkwindow-win32.c \
        surrogate-dimm.h
-
-makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gdk/win32/makefile.mingw.in
-       cd $(top_builddir) && CONFIG_FILES=gdk/win32/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
index 2ed6aeac082a10e5066bcdeb4025916ef0e4e3cd..42bdbd6a9d1a472470e6a586e0cdbb12f7c0db05 100644 (file)
@@ -79,6 +79,3 @@ EXTRA_DIST = \
        cursor94.cur \
        cursor96.cur \
        cursor98.cur
-
-gdk.rc: $(top_builddir)/config.status $(top_srcdir)/gdk/win32/rc/gdk.rc.in
-       cd $(top_builddir) && CONFIG_FILES=gdk/win32/rc/$@ CONFIG_HEADERS= $(SHELL) ./config.status
index bf67efe55cb26f2cf5e851debb68d7d7a33dd45e..262dd0a2e69574269b2fa0336fa79d2cb402a298 100644 (file)
@@ -607,15 +607,6 @@ testdnd_LDADD = $(LDADDS)
 simple_LDADD = $(LDADDS)
 #testthreads_LDADD = $(LDADDS)
 
-makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gtk/makefile.mingw.in
-       cd $(top_builddir) && CONFIG_FILES=gtk/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-makefile.msc: $(top_builddir)/config.status $(top_srcdir)/gtk/makefile.msc.in
-       cd $(top_builddir) && CONFIG_FILES=gtk/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-gtk-win32.rc: $(top_builddir)/config.status $(top_srcdir)/gtk/gtk-win32.rc.in
-       cd $(top_builddir) && CONFIG_FILES=gtk/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
 .PHONY: files test test-debug
 
 files:
index 104a278ecf82ae6bc152e3e7edca4475e70424b0..be82c677e1760899633513282f354d7d5f88b320 100644 (file)
@@ -466,11 +466,6 @@ render_para (GdkDrawable        *drawable,
   layout_logical.y += line_display->top_margin * PANGO_SCALE;
 
   screen_width = line_display->total_width;
-  if (screen_width < 0)
-    {
-      screen_width = pango_layout_get_width (layout);
-      screen_width = PANGO_PIXELS (screen_width);
-    }
   
   do
     {
index 01d76ddab3c8cb28b62a2e7e2478c49cee1412a7..68e2d0abbd50c52081bfbde0f82250d136516299 100644 (file)
@@ -1132,14 +1132,14 @@ set_para_values (GtkTextLayout      *layout,
     case GTK_WRAPMODE_CHAR:
       /* FIXME: Handle this; for now, fall-through */
     case GTK_WRAPMODE_WORD:
-      display->total_width = -1;
       layout_width = layout->screen_width - display->left_margin - display->right_margin;
       pango_layout_set_width (display->layout, layout_width * PANGO_SCALE);
       break;
     case GTK_WRAPMODE_NONE:
-      display->total_width = MAX (layout->screen_width, layout->width) - display->left_margin - display->right_margin;
       break;
     }
+  
+  display->total_width = MAX (layout->screen_width, layout->width) - display->left_margin - display->right_margin;
 }
 
 static PangoAttribute *
@@ -1790,10 +1790,9 @@ gtk_text_layout_get_line_display (GtkTextLayout *layout,
 
   pango_layout_get_extents (display->layout, NULL, &extents);
 
-  if (display->total_width >= 0)
-    display->x_offset += (display->total_width - PANGO_PIXELS (extents.width)) * align;
+  display->x_offset += (display->total_width - PANGO_PIXELS (extents.x + extents.width)) * align;
 
-  display->width = PANGO_PIXELS (extents.width) + display->x_offset + display->right_margin;
+  display->width = PANGO_PIXELS (extents.width) + display->left_margin + display->right_margin;
   display->height += PANGO_PIXELS (extents.height);
 
   /* Free this if we aren't in a loop */